﻿using System.Diagnostics;

namespace 观察者模式
{
    //具体观察者
    public class Mouse:Observer
    {
        private string _name;
        public Mouse(string name,ModelBase modelBase) : base(modelBase)
        {
            _name = name;
        }

        public override void Response()
        {
            Debug.WriteLine(_name+"老鼠跑了");
        }
    }
}
